home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / uni_cycle_balancer_game.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2012-01-07  |  315 b   |  10 lines

  1. totalBytes = Math.round(getBytesTotal() / 1024);
  2. loadedBytes = Math.round(getBytesLoaded() / 1024);
  3. percentDone = Math.round(loadedBytes / totalBytes * 100);
  4. percentone = totalBytes / 100;
  5. percent = Math.round(loadedBytes / percentone);
  6. if(_root._framesloaded >= _root._totalframes)
  7. {
  8.    gotoAndPlay(5);
  9. }
  10.